import  axios from  "./axios";

const  http= {  
    get:(url:string,params:any)=>axios({method:"get",url,params}),
    post:(url:string,data:any)=>axios({method:"post",url,data}),
    patch:(url:string,data:any)=>axios({method:"patch",url,data}),
    delete:(url:string,data:any)=>axios({method:"delete",url,data}),
}

export  default  http;

const  get  = http.get;
const post  = http.post;
const patch = http.patch;
const del  = http.delete

export  {
    get,post,patch,del
}
